package com.qf.service.impl;

import com.qf.dao.AddressDao;
import com.qf.dao.impl.AddressDaoImpl;
import com.qf.pojo.TbAddress;
import com.qf.service.AddressService;

import java.util.List;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/8/15 19:01
 */
public class AddressServiceImpl implements AddressService {
    AddressDao addressDao=new AddressDaoImpl();
    @Override
    public void add(TbAddress tbAddress) {
        addressDao.insertAddress(tbAddress);
    }

    @Override
    public List<TbAddress> getAddress(Long uid) {
        return addressDao.selectByUid(uid);
    }

    @Override
    public TbAddress selectAddress(long aid) {
        return addressDao.selectAddress(aid);
    }
}
